package com.lzq.his.resp;

import java.util.List;

/**
 * 分页 封装返回参数
 * 封装返回 total list
 */
public class PageResp<T> {

    // 返回list大小
    private Long total;

    // 返回数据
    private List<T> list;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageResp{" +
                "total=" + total +
                ", list=" + list +
                '}';
    }
}
